﻿
function showDiv(obj, sName, nNumeric, cClass)
{
	if(obj)
	{
		var id = obj.id;
		var objectNamePre = id.split('_')[0];
		var no = id.split('_')[1];
		
		for(var i=1; i<= nNumeric ; i++)
		{
			if(i == no)
			{
				document.getElementById(objectNamePre + '_' + i).className = cClass;
				document.getElementById(sName + '_' + i).style.display = "block";
			}
			else
			{
				document.getElementById(objectNamePre + '_' + i).className = "";
				document.getElementById(sName + '_' + i).style.display = "none";

			}
			
		}
	}
}